package com.asia5b.a5mall.middleware.model.order

import com.asia5b.a5mall.middleware.model.base.BaseModel
import java.io.Serializable

/**
 * Created by zhangyuncai on 2020/5/25.
 * 国内/外物流快递号信息
 */
open class LogisModel : BaseModel() {
    val guoji: ArrayList<GuoneiBean>? = null
    val guonei: ArrayList<GuoneiBean>? = null
}

open class GuoneiBean : BaseModel() {
    var order_sn = ""

    var express_name = ""

    var express_sn = ""

    var express_id = 0

    /*以下表示国际字段*/
    var mainordercode = ""

}

open class LogisDetailModel : BaseModel() {
    var data: ArrayList<LogisItemBean>? = null
}

open class LogisItemBean : BaseModel() {
    var logisticsInfo = ""

    var date = ""
        get() {
            var s = field
            if (s.contains(" ")) {
                s = s.replace(" ", "\n")
            }
            return s
        }
    /*
    已签收,感谢使用集运,期待
再次为您服务
     */
}
/*
 {
     "guon_boole": true,
     "guoji": [
         {
             "mainordercode": null
         }
     ],
     "address": [
         {
             "ship_name": null,
             "ship_address": null,
             "ship_tel": null,
             "fast_type": null
         }
     ],
     "guonei": [
         {
             "order_sn": "20200525000022",
             "express_name": "商城快递",
             "express_sn": "a5bmall15903981301",
             "express_id": 0
         }
     ],
     "address_boole": false,
     "guoji_boole": true
 }
 */